<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of CMS_Load
 *
 * @author Lucas Pinheiro
 */
/* load the MX_Loader class */
require APPPATH . "third_party/MX/Loader.php";

class CMS_Loader extends MX_Loader {

    //put your code here
    public function __construct() {
        parent::__construct();
        parent::initialize();
        //carregando configuração basica do CMS
        parent::config('cms');
        // setando templates Views
        //exit;
        $this->_ci_view_paths = array(
            APPPATH . 'views/' => TRUE,
            FCPATH . 'templates/' . config_item('template') . '/' => TRUE,
                //FCPATH . 'modulos/' . config_item('template') . '/views/' => TRUE
        );
    }

}